package cn.fourhundredandeighteen.view.StudentView.StudentFunction;

import cn.fourhundredandeighteen.controller.StudentController;
import cn.fourhundredandeighteen.entity.Subject;
import cn.fourhundredandeighteen.utill.Result;
import cn.fourhundredandeighteen.utill.ViewUtill;

import javax.swing.*;
import java.util.List;

public class StudentRewardInfo {
    public JScrollPane StudentRewardInfo() {//获取学生获奖信息
        StudentController studentController = new StudentController();
        Result<List<Subject>> listResult = studentController.studentSubjectInfo();
        JScrollPane jScrollPane = ViewUtill.viewSubjectTable(listResult.getData());
        return jScrollPane;
    }
}
